package cn.wangsy.zhidao.p20170109;

import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.geom.Ellipse2D;

import javax.swing.JPanel;

public class Pan extends JPanel{
	int v=100;   //小球处速度 px/sleeptime 像素每刷新率
	int x=50,y=50;  //圆心坐标
	Ellipse2D.Float ball;
	
	public void paint(Graphics comps){
		 Graphics2D comp2D=(Graphics2D)comps;
		 ball=new Ellipse2D.Float(50,50,50,50);
		 Move p=new Move(ball);
		 p.start();
		 comp2D.fill(ball);
		 System.out.println("asd");
	 }

 }
